package org.lboot.chat.api.chat;
import org.lboot.chat.params.chat.ChatParams;
import org.lboot.chat.params.chat.ChatResult;
import org.lboot.mrest.annotation.Body;
import org.lboot.mrest.annotation.Headers;
import org.lboot.mrest.annotation.MicroRest;
import org.lboot.mrest.annotation.Post;

import java.util.Map;

/**
 * @author kindear
 * 聊天相关API
 */
@MicroRest
public interface ChatApi {
    // 新建聊天接口
    @Post("#{openai.chat.host}/v1/chat/completions")
    ChatResult ChatCompletions(@Headers Map<String, Object> headers, @Body ChatParams params);

    @Post("#{openai.chat.host}/v1/chat/completions")
    String ChatCompletionsStr(@Headers Map<String, Object> headers, @Body ChatParams params);
}
